package com.woniuxy.service;

import com.woniuxy.entity.Appinfo;
import com.woniuxy.entity.Appointment;
import com.woniuxy.vo.AppointmentVO;

import java.util.List;
import java.util.Map;

public interface AppointmentService {
    //通过预约状态查询订单信息
    List<AppointmentVO> selectCampOrderByStatus(Map<String,Object> map) throws Exception;
    //新增订单详情并返回appinfoId
    int insertAppinfoReturnKey(Appinfo appinfo) throws Exception;
    //新增订单信息
    int insertAppointment(Appointment appointment) throws Exception;
    //非空更新
    int updateAppointment(Appointment appointment) throws Exception;
    //根据carId查询预约信息 以此判断是否预约
    List<Appointment> selectAppointmentByCarId(Integer carId,Integer status,Integer userId) throws  Exception;
    //通过appId查询预约信息
    Appointment selectAppointmentByAppId(Integer appId) throws Exception;
    //查询car在一定时间段的预约状态
    List<Appointment> selectAppointmentBycarIdAndStatus(Integer carId) throws Exception;
    //查询未完成订单  定时改变订单状态
    List<Appointment> selectAppointmentNotOver() throws Exception;
}
